<?php


namespace App\Common;


class JwtAuth
{

    /**
     * jwt token
     * @var
     */
    private $token;


    /**
     * claim iss 发布者url
     * @var string
     */
    private $iss = '';

    /**
     * claim aud 接收者url
     * @var string
     */
    private $aud = '';


    /**
     * claim uid 设置用户id
     * @var
     */
    private $uid;

    private $secrect = '1E24#dajk297&ms215JGG85F525#$0*jm&Tk#(@mdd@s428!1235jkdlsi20dnoNJN9';

    private $decodeToken = null;

    private static $instance;


    public static function getInstance()
    {
        if (is_null(self::$instance)){
            self::$instance = new self();
        }

        return self::$instance;
    }


    /**
     * 私有化构造
     * JwtAuth constructor.
     */
    public function __construct()
    {

    }


    public function encode()
    {

    }
}
